import request from '@/utils/request'
export default{
    //增
    addBanner(banner){
        return request({
            url:`/educms/banneradmin/addBanner`,
            method:'post',
            data:banner
        })
    },
    //删
    deleteBanner(id){
        return request({
            url:`/educms/banneradmin/deleteBanner/${id}`,
            method:'delete'
        })
    },
    //改
    updateBanner(banner){
        return request({
            url:`/educms/banneradmin/updateBanner`,
            method:'post',
            data:banner
        })
    },
    //查
    getBanner(id){
        return request({
            url:`/educms/banneradmin/getBanner/${id}`,
            method:'get'
        })
    },
    //分页
    getBannerList(page,limit){
        return request({
            url:`/educms/banneradmin/pageBanner/${page}/${limit}`,
            method:'get'
        })
    },
}